package com.hibase.core.mybatis.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * BaseDo新增乐观锁
 *
 * @author zjw
 * @date 2021/01/19
 */
@Data
@ApiModel(value = "乐观锁基础数据")
@EqualsAndHashCode(callSuper = true)
public class BaseVersionDO extends BaseDO {

    @Version
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "乐观锁")
    private Integer version;
}
